var image = new Array();

function preLoadImage() {
	for (i=0; i<arguments.length; i++) {
		image[i] = new Image ();
		image[i].src = arguments[i];
	}
}


function preLoadImageWithSize(imageSources, widths, heights) {
	imageSourceArray = imageSources.split("|");
	widthArray = widths.split("|");
	heightArray = heights.split("|");
	for (i=0; i<imageSourceArray.length; i++) {
		image[i] = new Image (widthArray[i], heightArray[i]);
		image[i].src = imageSourceArray[i];
	}
}


function changeImageSize(obj, width, height) {
	obj.width = width;
	obj.height = height;
}
